#ifndef _SCORE_H_
#define _SCORE_H_

#include "Object.h"

#define GRAVITY		0.01

class Score : public Object
{
	float _xOld;
	float _yOld;

	//float _vx;
	//float _vy;

	//float _accelY;

public:
	int score;

	/*
	 *	get/set properties
	 */
	OBJECT_TYPE getObjectType();

	/*
	 *	Constructor/destructor
	 */
	Score(LPDIRECT3DDEVICE9 d3ddv, LPDIRECT3DSURFACE9 BackBuffer, LPD3DXSPRITE SpriteHandler, float x, float y);
	~Score();


	/*
	 *	method
	 */
	void Render(RECT camera, int cameraX, int cameraY);
	void Render(int cameraX, int cameraY);
	//void Update(list<Object*>* staObjs, list<Object*>* dynObjs, DxInput* input, float TPF);
	void update(list<Object*>* obj_list, DxInput* input, float TPF);
	
	//void ResetRect();

	void Update(int Score);
	void DrawNumber(Sprite* sprite,int number,int x,int y, int cameraX, int cameraY);

	void changeState(int state);
};

#endif